package com.erp.itm.dao;

import com.erp.itm.domain.DeviceAmountDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author Eric
 * @email shiliang900713@163.com
 * @date 2019-07-19 16:00:37
 */
@Mapper
public interface DeviceAmountDao {

	DeviceAmountDO get(Long id);
	
	List<DeviceAmountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(DeviceAmountDO deviceAmount);
	
	int update(DeviceAmountDO deviceAmount);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    DeviceAmountDO getProjectId(Long projectId);

    int updatePurPrice(@Param("purPrice") BigDecimal purPrice,@Param("id") Long id);

	int updatePurPriceByoutlay(@Param("purPrice") BigDecimal purPrice,@Param("id") Long id);

	int updatePurPriceByonPur(@Param("purPrice") BigDecimal purPrice,@Param("id") Long id);

	int updatePurPriceByother(@Param("purPrice") BigDecimal purPrice,@Param("id") Long id);
}
